package cn.xanderye.hello.service.api.service;

import cn.xanderye.hello.service.api.dto.User;
import org.springframework.web.bind.annotation.*;

@RequestMapping("refactor")
public interface HelloService {

    @GetMapping("hello4")
    String hello(@RequestParam String name);

    @GetMapping("hello5")
    User hello(@RequestHeader String name, @RequestHeader Integer age);

    @PostMapping("hello6")
    String hello(@RequestBody User user);
}
